<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <script type='text/javascript' src='http://localhost/cms/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/cms/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/cms/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/cms/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/cms/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
    <link href='http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
    <script type="text/javascript" src="http://localhost/cms/./Cms/Cms/Admin/Tpl/Public/yz.js"></script>
    <link type="text/css" rel="stylesheet" href="http://localhost/cms/./Cms/Cms/Admin/Tpl/Category/css/css.css"/>
</head>
<body>
<div class="wrap">
    <div class="title-header">编辑分类</div>
    <form action="" method="post" class="form-inline hd-form" id="add-cate-form">
        <table class="table1">
            <tr>
                <th class="w100">分类名称</th>
                <td class="w100">
                    <input type="text" name="cname" class="w200" value="<?php echo $oldData['cname'];?>"/> 
                </td>
                <td><span id="hd_cname"></span></td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="pid" class="w200">
                        <option value="0">顶级分类</option>
                        <?php if(is_array($chooseCate)):?><?php  foreach($chooseCate as $v){ ?>
                            <option value="<?php echo $v['cid'];?>" <?php if($v['cid'] == $oldData['pid']){?>selected="selected"<?php }?>><?php echo $v['_name'];?></option>
                        <?php }?><?php endif;?>    
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">分类标题</th>
                <td>
                    <input type="text" name="ctitle" class="w200" value="<?php echo $oldData['ctitle'];?>"/>
                </td>
                <td><span id="hd_ctitle"></span></td>
            </tr>
            <tr>
                <th class="w100">分类关键字</th>
                <td>
                    <textarea name="ckeywords" class="form-control" rows="5"><?php echo $oldData['ckeywords'];?></textarea>
                </td>
                <td><span id="hd_ckeywords"></span></td>
            </tr>
            <tr>
                <th class="w100">分类描述</th>
                <td>
                    <textarea name="cdes" class="form-control" rows="5"><?php echo $oldData['cdes'];?></textarea>
                </td>
                <td><span id="hd_cdes"></span></td>
            </tr>
            <tr>
                <th class="w100">分类排序</th>
                <td>
                    <input type="text" name="csort" class="w200" value="100"/>
                </td>
                <td><span id="hd_csort"></span></td>
            </tr>
            <tr>
                <th class="w100">静态目录</th>
                <td>
                    <input type="text" name="htmldir" class="w200" value="<?php echo $oldData['htmldir'];?>"/>
                </td>
                <td><span id="hd_htmldir"></span></td>
            </tr>
             <tr>
                <th class="w100">列表页静态</th>
                <td>
                    是：<input type="radio" name="is_listhtml" id="" value="1" <?php if($oldData['is_listhtml'] == 1){?>checked="checked"<?php }?>/>
                    &nbsp;
                    否: <input type="radio" name="is_listhtml" id="" value="0" <?php if($oldData['is_listhtml'] == 0){?>checked="checked"<?php }?>/>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">内容页静态</th>
                <td>
                    是：<input type="radio" name="is_archtml" id="" value="1" <?php if($oldData['is_archtml'] == 1){?>checked="checked"<?php }?>/>
                    &nbsp;
                    否: <input type="radio" name="is_archtml" id="" value="0" <?php if($oldData['is_archtml'] == 0){?>checked="checked"<?php }?>/>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">是否显示</th>
                <td>
                    是：<input type="radio" name="is_show" id="" value="1" <?php if($oldData['is_show'] == 1){?>checked="checked"<?php }?>/>
                    &nbsp;
                    否: <input type="radio" name="is_show" id="" value="0" <?php if($oldData['is_show'] == 0){?>checked="checked"<?php }?>/>
                </td>
                <td></td>
            </tr>
            <tr><td></td></tr> 
            <tr><td></td></tr> 
            <tr><td></td></tr> 
            <tr><td></td></tr> 
            <tr><td></td></tr>    
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="修改"/>
            <input type="button" class="hd-success" value="返回" onclick="history.back()"/>
        </div>
    </form>
</div>
</body>
</html>